package myoar

object App {

    def main(args:Array[String]) = {
      // example of argument parsing:
      // https://github.com/scala/scala/releases/tag/v2.11.0-RC1
      go
    }

    def go = {
      val myoListener =
        new Myo.Listener(
          orientationQ = Stream.orientationQ, poseQ = Stream.poseQ)
      Myo.Hub.init(myoListener)
      Drone.init
      Myo.EventLoop.start
    }

    def kill = Myo.EventLoop.interrupt

  }
